﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Layans.Data
{
    public class NewsCard
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [StringLength(5000, MinimumLength = 5, ErrorMessage = "полето трябва да е минимум 5 иу максимум 5000 символа")]
        public string Cardimg { get; set; }

        public Avatar img { get; set; }

        public User UserNamе { get; set; }

        //public DateTime DateTime { get; set; }
    }
}
